<!DOCTYPE html>
<html >
	<head>
		<meta charset="utf-8" />
		<script type="text/javascript" src="../js/angular.js" ></script>
		<title></title>
	</head>
	<body ng-app="app" >
		<div ng-controller="ctrl"  >
			<ul>
				<li ng-repeat="v in data" >
					<span style="{{$first?'color:red':''}}" >姓名：{{v.name}},地址{{v.url}}</span>
				</li>
			</ul>
		</div>
		<script>
            var app=angular.module("app",[]);
            app.controller("ctrl",["$scope",function($scope){
                $scope.data=[{name:"张三",url:"http://baidu.com"},{name:"李四",url:"http://163.com"},{name:"王五",url:"http://sine.com"},{name:"周六",url:"http://sohu.com"}];
            }]);

		</script>
	</body>
</html>
